<div class="bs-docs-section">
<pre class="html">
    <code id="watch">
    </code>
</pre>
    <h3>说明</h3>
    <ul>
        <li>如果要监控person里面的<code>name</code>，<code>$watch("person.name"</code></li>
        <li>监控数组里面的变量，<code>$watch("list.xxx"</code>,是数组,xxx数组里面对象属性</li>
        <li><code>newValue, oldValue, $self</code> 三个参数,新值、旧值、监控的属性所在的vm</li>
    </ul> 
    </p>
</div>
<script>
    loadcode("watch", "watch", "code.html");
</script>